package chapter1.dataabstraction.exercise;

/**
 * @author quanlinlin on 2018/11/25 0:14.
 * @version 1.0
 */
public class E_6 {

    public static void main(String[] args) {
        //判断两个字符串是否为回文变位
        String s1 = "ACTGACG";
        String s2 = "TGACGAC";
        boolean b = (s1.length() == s2.length()) && (s1.concat(s1).indexOf(s2) >= 0);
    }



}
